﻿using System;
/* Problem 3. Compare char arrays

Write a program that compares two char arrays lexicographically (letter by letter)
 */

namespace _03.CompareCharArrays
{
    class CompareCharArrays
    {
        static void Main()
        {
            Console.WriteLine("Enter array dimenson");
            int arrayLength = int.Parse(Console.ReadLine());
            char[] array1 = new char[arrayLength];
            char[] array2 = new char[arrayLength];
            for (int i = 0; i < array1.Length; i++)
            {
                Console.WriteLine("Enter {0} elemen of the first array", i);
                array1[i] = char.Parse(Console.ReadLine());
            }
            for (int i = 0; i < array2.Length; i++)
            {
                Console.WriteLine("Enter {0} elemen of the second array", i);
                array2[i] = char.Parse(Console.ReadLine());
            }
            for (int i = 0; i < arrayLength; i++)
            {
                Console.WriteLine(array1[i] == array2[i]);
            }
        }
    }
}
